<template>
  <div class="floatBtnBox border_r16 bg_w flex_c_c_c" @click="goCheckingList">
    <i class="iconfont iconshenhe tc_g f_32 margin_b6"></i>
    <p class="f_10 tc_g">审核</p>
    <span v-if="handleNum > 0" class="tag f_10 tc_w bg_r" v-text="handleNum"></span>
  </div>
</template>

<script>
export default {
  name: 'floatBtn',
  props: {
    handleNum: {
      type: Number,
      default: 0
    }
  },
  data() {
    return {}
  },
  methods: {
    goCheckingList() {
      this.$router.push({
        path: '/checking'
      })
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less" scoped>
.floatBtnBox {
  width: 6.4rem;
  height: 6.4rem;
  box-shadow: 0rem 0.2rem 0.8rem rgba(0, 0, 0, 0.1);
}
.tag {
  height: 1.6rem;
  line-height: 1.6rem;
  padding: 0rem 0.5rem;
  box-sizing: border-box;
  text-align: center;
  border-radius: 0.8rem;
  position: absolute;
  right: 1.2rem;
  top: 1rem;
}
</style>
